# -*- codeing = utf-8 -*-
# @Time : 2022/12/22 19:30
# @Author : 小马
# @File: Ap.py
# @Software : PyCharm

import pygame
class Ap(pygame.sprite.Sprite):
    def __init__(self,lasttime):
        super(Ap,self).__init__()
        self.image=pygame.image.load('material/character3.1.PNG').convert_alpha()
        self.images=[pygame.image.load('material/character3.{:d}.png'.format(i)).convert_alpha() for i in range(1,27)]
        self.rect=self.images[0].get_rect()
        self.lasttime=lasttime
        # self.rect.top=120
        # self.rect.left=700
    def update(self,*args):
        self.image=self.images[args[0]%len(self.images)]
